package org.example.sdpback.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName(value = "user", schema = "sdp")
public class User {
    @TableId(type = IdType.AUTO)
    @Schema(type = "long")
    private Long id;
    @Schema
    private String username;
    @Schema
    private String password;
    @Schema
    private String salt;
    @Schema
    private String nickname;
    @Schema
    private String email;
    @Schema
    private String mobile;
    @Schema
    @TableField(value = "create_at")
    private LocalDateTime createTime;
    @Schema
    @TableField(value = "update_at")
    private LocalDateTime updateTime;
}
